﻿using XYAC.Framework.MonitorTireMaterialManual.Context;
using XYAC.Framework.MonitorTireMaterialManual.Entities;
using XYAC.Framework.MonitorTireMaterialManual.LocalData.Models;

namespace XYAC.Framework.MonitorTireMaterialManual.IServices
{
    public interface ILocalReportService : IServiceBase<int, CurrentReportContext>
    {
        /// <summary>
        /// 插入报表数据
        /// </summary>
        /// <typeparam name="TType"></typeparam>
        /// <param name="data"></param>
        /// <param name="localInspect"></param>
        /// <returns></returns>
        int Add<TType>(TType data, YB_LOT_INSPECT_Local localInspect) where TType : ReportEntityBase;
        /// <summary>
        /// 检查是否已进行过班前检点
        /// </summary>
        /// <param name="shift">班次</param>
        /// <param name="datetime">工作日期(yyyy-mm-dd)</param>
        /// <returns>已做过 返回真</returns>
        bool isCheck(string shift,DateTime datetime);
        /// <summary>
        /// 获取班前检点的数据
        /// </summary>
        /// <param name="shift">班次</param>
        /// <param name="datetime">工作日期(yyyy-mm-dd)</param>
        /// <returns>检点数据对象</returns>
        object findCheckData(string shift, DateTime datetime);

    }
}
